<?php
/**
 * Created by PhpStorm.
 * User: Zhoujinda
 * Date: 2016/4/11
 * Time: 10:53
 */
namespace Bbs\Model;

use Think\Model\ViewModel;

class BbsMemberViewModel extends ViewModel{
    
    public $viewFields = array(
        'UcenterMember'=>array('_table'=>'__UCENTER_MEMBER__','_type'=>'LEFT','id','username','mobile','email','reg_from'),
        'CommonMember'=>array('_on'=>'UcenterMember.id=CommonMember.uid','_table'=>'common_member','_type'=>'LEFT','nickname','head'),
        'UserAdmingroup'=>array('_table'=>'__FORUM_USER_ADMINGROUP__','_on'=>'UserAdmingroup.uid=CommonMember.uid','_type'=>'LEFT','fid','adminid'),
        'AdminGroup'=>array('_table'=>'__FORUM_ADMINGROUP__','_on'=>'UserAdmingroup.adminid=AdminGroup.adminid','_type'=>'LEFT','alloweditpost','allowstickthread','allowdelpost','allowbanuser','allowdigestthread','allowpost','name'),
        'Forum'=>array('_table'=>'__FORUM_FORUM__','_on'=>'Forum.fid=UserAdmingroup.fid','_type'=>'LEFT','name'=>'forum_name')
    );
    
}